/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import dao.generic.GenericDAO;
import modelo.SustratoNave;

/**
 *
 * @author Elias Mendoza
 */
public class SustratoNaveDAO extends GenericDAO{
  public SustratoNave getSustratoNaveById(int id){
    SustratoNave sn;
    try{
      iniciarOperacion();
      sn = (SustratoNave) sesion.get(SustratoNave.class,id);
    }
    finally{
      sesion.close();
    }
    return sn;
  }
  
}
